#ifndef ADLOGIC
#define ADLOGIC
#include "cJSON.h"
//广告机资源
typedef struct AdResource
{
    int id;
    int ad_id;
    int type_id;
    char* path;
    char* sign;
    int index;
}AdResource;

//广告机本身信息
typedef struct Ad
{
    int id;
    int template_id;//模板id
    int customer_id;
    char* start_time;
    char* end_time;
    int state;
    int index;
    //广告资源
    AdResource *adResources[3];
}Ad;

void handleAdList(cJSON* adListArry);
#endif